<template>
    <div class="acount">
        <div class="acount-head">账号设置</div>
        <div class="form-container">
            <div class="form">
                <div class="form-input-element">
                    <label class="form-title">
                        手机号
                    </label>
                    <input class="input" type="text" disabled="false" name="title" placeholder="156****1589" value="">
                    <div class="btn-change">更改</div>
                </div>
                <div class="form-input-element">
                    <label class="form-title">
                        邮箱
                    </label>
                    <input class="input" type="text" disabled="false" name="title" placeholder="未绑定，绑定后获得更佳体验" value="">
                    <div class="btn-change">绑定</div>
                </div>
                <div class="form-input-element">
                    <label class="form-title">
                        账号密码
                    </label>
                    <input class="input" type="text" disabled="false" name="title" placeholder="已设置，可通过账户密码登录" value="">
                    <div class="btn-change">更改</div>
                </div>
                <div class="form-input-element">
                    <label class="form-title">
                        删除账户
                    </label>
                    <div class="delete-account">
                        <p class="title">删除账户操作不可逆，请谨慎操作！</p>
                        <p>请在下方输入框中输入手机号以确认操作：</p>
                        <input class="my-form-input" name="mobile" type="tel" autocomplete="off" placeholder="请输入当前账户的手机号"
                            required="true">
                        <button class="btn-normal">删除账户</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script lang="ts" setup>
</script>

<style lang='scss' scoped>
.acount {
    width: 800px;
    height: 520px;
    margin: 10px auto;
    background-color: #fff;
    border-radius: 10px;

    .form-container {
        margin-top: 20px;
        display: flex;

        .form {
            padding: 20px 0 0 30px;
            font-size: 12px;
        }

        .form-input-element {
            margin-bottom: 40px;
            padding-left: 80px;
            position: relative;
            max-width: 410px;


            .form-title {
                display: block;
                font-size: 14px;
                color: #999;
                cursor: pointer;
                width: 100px;
                position: absolute;
                left: 0;
                top: 8px;
            }

            .input {
                width: 318px;
                height: 36px;
                background-color: #fff;
                border-radius: 5px;
                border-color: #e6e6e6;
                cursor: not-allowed;
                color: #ccc;
                border: none;
                border: 1px solid black;
            }

            input::placeholder {
                padding-left: 10px;
                color: #999;
                font-size: 12px;
                opacity: 1;
            }

            .btn-change {
                position: absolute;
                top: 0;
                right: 0;
                height: 100%;
                padding: 0 0.8em;
                display: flex;
                align-items: center;
                color: #666;
                cursor: pointer;

            }

        }
    }
}

.acount-head {
    height: 48px;
    width: 100%;
    line-height: 48px;
    font-size: 18px;
    font-weight: 600;
    color: #2e2e2e;
    padding-left: 16px;
    border-bottom: 1px solid #f0f0f2;
}

.delete-account {
    border: 1px solid #DFDFDF;
    border-radius: 4px;
    background-color: #FFF;
    padding: 10px 20px;
    max-width: 400px;

    .title {
        margin-bottom: 5px;
        font-size: 14px;
        font-weight: 400;
    }

    p {
        margin-bottom: 10px;
    }

    .my-form-input {
        width: 100%;
        height: 32px;
        font-size: 12px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    .btn-normal {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        height: 32px;
        border: 1px solid transparent;
        font-weight: 400;
        text-align: center;
        cursor: pointer;
        color: #333;
        border-radius: 40px;
        background-color: #ddd;
    }

    .btn-normal:hover {
        background: center center #4A54FF;
        background-image: linear-gradient(315deg, #6772FF 0, #00F9E5 100%);
        background-size: 104% 104%;
        color: #fff;
    }
}
</style>